package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wenmedia.dtos.WmMaterialDTO;
import com.heima.model.wenmedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;


public interface WmMaterialService extends IService<WmMaterial> {

    //上传
    ResponseResult uploadPicture(MultipartFile multipartFile);

    //查询
    ResponseResult findlist(WmMaterialDTO dto);

    //删除
    ResponseResult delPicture(Integer id);

    /**
     * 收藏与取消收藏
     * @param id
     * @param type
     * @return
     */
    ResponseResult updateStatus(Integer id, Short type);
}
